package com.dstz.bpm.core.model;

import com.dstz.base.api.model.IBaseModel;
import com.dstz.bpm.api.model.inst.IBpmInstance;
import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class BpmInstance implements IBaseModel, IBpmInstance {
   protected String id;
   protected String subject;
   protected String defId;
   protected String y;
   protected String F;
   protected String defName;
   protected String G;
   protected String status;
   protected Date endTime;
   protected Long H;
   protected String x;
   protected String I;
   protected String createBy;
   protected String creator;
   protected Date createTime;
   protected String D;
   protected String updateBy;
   protected Date updateTime;
   protected String J;
   protected String K;
   protected Short L = Short.valueOf((short)0);
   protected String M;
   protected Integer supportMobile;
   protected String N;
   protected transient boolean O = true;
   protected transient boolean P = false;

   public void setId(String id) {
      this.id = id;
   }

   public String getId() {
      return this.id;
   }

   public void setSubject(String subject) {
      this.subject = subject;
   }

   public String getSubject() {
      return this.subject;
   }

   public void setDefId(String defId) {
      this.defId = defId;
   }

   public String getDefId() {
      return this.defId;
   }

   public void setActDefId(String actDefId) {
      this.y = actDefId;
   }

   public String getActDefId() {
      return this.y;
   }

   public void setDefKey(String defKey) {
      this.F = defKey;
   }

   public String getDefKey() {
      return this.F;
   }

   public void setDefName(String defName) {
      this.defName = defName;
   }

   public String getDefName() {
      return this.defName;
   }

   public void setBizKey(String bizKey) {
      this.G = bizKey;
   }

   public String getBizKey() {
      return this.G == null ? "" : this.G;
   }

   public void setStatus(String status) {
      this.status = status;
   }

   public String getStatus() {
      return this.status;
   }

   public void setEndTime(Date endTime) {
      this.endTime = endTime;
   }

   public Date getEndTime() {
      return this.endTime;
   }

   public void setDuration(Long duration) {
      this.H = duration;
   }

   public Long getDuration() {
      return this.H;
   }

   public void setTypeId(String typeId) {
      this.x = typeId;
   }

   public String getTypeId() {
      return this.x;
   }

   public void setActInstId(String actInstId) {
      this.I = actInstId;
   }

   public String getActInstId() {
      return this.I;
   }

   public void setCreateBy(String createBy) {
      this.createBy = createBy;
   }

   public String getCreateBy() {
      return this.createBy;
   }

   public void setCreator(String creator) {
      this.creator = creator;
   }

   public String getCreator() {
      return this.creator;
   }

   public boolean a() {
      return this.P;
   }

   public void setHasUpdate(boolean hasUpdate) {
      this.P = hasUpdate;
   }

   public void setCreateTime(Date createTime) {
      this.createTime = createTime;
   }

   public Date getCreateTime() {
      return this.createTime;
   }

   public void setCreateOrgId(String createOrgId) {
      this.D = createOrgId;
   }

   public String getCreateOrgId() {
      return this.D;
   }

   public void setUpdateBy(String updateBy) {
      this.updateBy = updateBy;
   }

   public String getUpdateBy() {
      return this.updateBy;
   }

   public void setUpdateTime(Date updateTime) {
      this.updateTime = updateTime;
   }

   public Date getUpdateTime() {
      return this.updateTime;
   }

   public void setIsFormmal(String isFormmal) {
      this.J = isFormmal;
   }

   public String getIsFormmal() {
      return this.J;
   }

   public void setParentInstId(String parentInstId) {
      this.K = parentInstId;
   }

   public String getParentInstId() {
      return this.K;
   }

   public void setIsForbidden(Short isForbidden) {
      this.L = isForbidden;
   }

   public Short getIsForbidden() {
      return this.L;
   }

   public void setDataMode(String dataMode) {
      this.M = dataMode;
   }

   public String getDataMode() {
      return this.M;
   }

   public void setSupportMobile(Integer supportMobile) {
      this.supportMobile = supportMobile;
   }

   public Integer getSupportMobile() {
      return this.supportMobile;
   }

   public void setSuperNodeId(String superNodeId) {
      this.N = superNodeId;
   }

   public String getSuperNodeId() {
      return this.N;
   }

   public String toString() {
      return (new ToStringBuilder(this)).append("id", this.id).append("subject", this.subject).append("defId", this.defId).append("actDefId", this.y).append("defKey", this.F).append("defName", this.defName).append("bizKey", this.G).append("status", this.status).append("endTime", this.endTime).append("duration", this.H).append("typeId", this.x).append("actInstId", this.I).append("createBy", this.createBy).append("creator", this.creator).append("createTime", this.createTime).append("createOrgId", this.D).append("updateBy", this.updateBy).append("updateTime", this.updateTime).append("isFormmal", this.J).append("parentInstId", this.K).append("isForbidden", this.L).append("dataMode", this.M).append("supportMobile", this.supportMobile).append("superNodeId", this.N).toString();
   }

   public Boolean hasCreate() {
      return this.O;
   }

   public void setHasCreate(Boolean hasCreate) {
      this.O = hasCreate;
   }
}
